//menu.h

typedef enum {
Initial_State = 0,
Configure_Setting,
Temp_Logging,
PC_Transfer,
Set_Time,
Set_Clock,
Set_Date,
Measure_Interval,
Auto_Power_Off,
Brightness_Set,
Power_Save_Mode,
Reset_Factory_Settings,
Invalid_State
} Main_State;

typedef enum {
LCD_Initial_State=0,
LCD_Disp_Min_Temp,
LCD_Disp_Max_Temp,
LCD_Disp_Prev_Temp_Log,
LCD_Disp_Next_Temp_Log,
LCD_Disp_Curr_Temp,
LCD_Menu_Jmp_Out_State
} LCD_State;


typedef enum {
Long_Press,
Short_Press
} Press_State;


typedef enum {
Off_Sw,
On_Sw
} Switch_State;


void Main_Menu_Control(unsigned char , Press_State ,LCD_State);
void LCD_Menu_Control(unsigned char , Press_State , Main_State);
void Measure_Int_Process(void);
void Auto_Power_Off_Process(void);
void Brightness_Set_Process(void);
void Power_Save_Mode_Process(void);
void Reset_Factory_Settings_Process(void);
void Set_Date_Process(void);
void Set_Clk_Process(void);
void Temp_Logging_Process(void);
